<include file="Common:header" />
<php>if($keyword){</php>
<table id="columns">
<tr>
<td id="main">
    <div id="infohead">
        <div class="hometip">和 #<{$keyword}># 话题相关的广播</div>
        <div class="fright" id="followtopic">
        <php>if($count>0){</php>
            <php>if($isfollow==1){</php>
                <a class='bl' onclick="fltopic('<{$keyword}>','确认要解除关注该话题？','jc')">解除关注</a>
            <php>}else{</php>
                <a class="bh" onclick="fltopic('<{$keyword}>','','fl')">关注话题</a>
            <php>}</php>
        <php>}</php>
        </div>
        <textarea id="contentbox" class="input_text headtextarea" onkeydown="javascript:return ctrlEnter_st(event);"></textarea>
        <div class="sendbox">
        <div id="uploadbox">
            <div id="emotion"></div>
            <div class="topic"><a href="javascript:void(0);" onclick="Sharetopic()">话题</a>
            <div id="sharetopic">
                <div class="topicbox">
                <ul id="tabnav2"> 
                    <a id="topic1" onclick="topicajax(1);" href="javascript:void(0)">我关注的</a>
                    <a id="topic2" onclick="topicajax(2);" href="javascript:void(0)">推荐话题</a>
                </ul> 
                <ul class="tagB"></ul>
                </div>
            </div>
            </div>
            <div class="video"><a href="javascript:void(0);">视频</a>
            <div id="sharevideo" style="display:none">
                <p>请直接在微博发布框粘贴视频播放页面URL地址，或MP3/WMA音乐文件地址</p>
	            <p>支持如下视频的站内播放：<a href="http://video.sina.com.cn/" rel="nofollow" target="_blank">新浪</a>、<a href="http://www.youku.com/" rel="nofollow" target="_blank">优酷</a>、<a href="http://v.blog.sohu.com/" rel="nofollow" target="_blank">搜狐</a>、<a href="http://www.ku6.com/" rel="nofollow" target="_blank">酷6</a>、<a href="http://www.tudou.com/" rel="nofollow" target="_blank">土豆</a>、<a href="http://tv.mofile.com/" rel="nofollow" target="_blank">魔方</a></p>
            </div></div>
            <div class="emos"><a href="javascript:void(0);" onclick="showemotion('emotion','contentbox')">表情</a></div>
            <div class="photo"><a href="javascript:void(0);">照片</a>
            <div id="sharephoto">
                <div id="loadform" style="display:block">
                    <div id="closephoto"></div>
                    请选择要上传的图片：
                    <form target="imageUpload" method="post" enctype="multipart/form-data" action="<{:SITE_URL}>/Space/uploadpic" id="upform">
                        <input type="file" id="uploadbtn" class="uploadbtn" name="image" title="支持jpg、jpeg、gif、png格式，文件小于2M"/>
                    </form>
                </div>
                <div id="priviewbtn"></div>
                <div id="uploading"><img src='<{:__PUBLIC__}>/images/spinner.gif'> 上传中 <a href='javascript:void(0)' onclick='cencelUpload();'>[取消]</a></div>
                <div class="clearline"></div>
                <div id="priviewpoic"></div>
            </div>
            </div>
            <iframe style="display:none;" src="about:blank" name="imageUpload" id="imageUpload"></iframe>
            <span id="morecontent" style="display:none;"></span>
        </div>
        <div class="fright">
            <input type="hidden" id="topic" value="#<{$keyword}>#">
            <div class="sendtip"><span class="sendsp">还能输入<span id="nums">140</span>字</span></div>
            <input type="button" class="sendbutton" onclick="sendTalk()" value=""/>
        </div>
        </div>
    </div>
    <div class="clearline"></div>
    <div class="contenter">
        <div class="ad3"><{:stripslashes($site['ad3'])}></div>
        <div class="hometitle">
            <div class="mine">一共有 <span id="keynum"><{$count}></span> 条广播</div>
        </div>
        <div id="stream" class="message">
            <ol class="wa">
            <php>if($count>0){</php>
                <php>foreach($content as $val){</php>
                    <{:$ctent->loadoneli($val);}>
                <php>}</php>
            <php>}else{</php>
                <li class="unlight" id="nonemsg">此话题暂没有人发表，您可以创建此话题...</li>
            <php>}</php>
            </ol>				
        </div>
    </div>
</td>
<td id="sidebar" rowspan="2">
<div class="contenter">
    <{$hottopic}>
    <div class="sect">
        <h2>友情提示</h2>
        在您发表微博的时候，系统会自动将两个#之间的文字作为本条微博的话题标签，比如#意见反馈#，那么所有包括<a href="<{:SITE_URL}>/k/意见反馈">#意见反馈#</a>的话题就都聚合在一个页面了。
    </div>
</div>
</td>
</tr>
<tr>
<td height="36px"><div id="indexpage" class="page"><{$page}></div></td>
</tr>
</table>
<php>}else{</php>
<div class="friends">
<div id="stream">
    <div class="titleline">
        <div class="line"></div>
        <div class="h4">话题排行榜</div>
    </div>
    <div class="ranklist">
        <h4><span class="more">话题总数</span>热门话题榜</h4>
        <ul class="top_list">
        <php>foreach($topic1 as $key=>$val){</php>
            <li>
                <span><{:($key+1)}></span>
                <em><{$val[topictimes]}></em>
                <a href="<{:SITE_URL}>/k/<{$val[topicname]}>"><{$val[topicname]}></a>
            </li>
        <php>}</php>
        </ul>
    </div>
    <div class="ranklist">
        <h4><span class="more">话题总数</span>推荐话题榜</h4>
        <ul class="top_list">
        <php>foreach($topic2 as $key=>$val){</php>
            <li>
                <span><{:($key+1)}></span>
                <em><{$val[topictimes]}></em>
                <a href="<{:SITE_URL}>/k/<{$val[topicname]}>"><{$val[topicname]}></a>
            </li>
        <php>}</php>
        </ul>
    </div>
    <div class="ranklist" style="margin-right:0px">
        <h4><span class="more">关注人数</span>话题关注榜</h4>
        <ul class="top_list">
        <php>foreach($topic3 as $key=>$val){</php>
            <li>
                <span><{:($key+1)}></span>
                <em><{$val[follownum]}></em>
                <a href="<{:SITE_URL}>/k/<{$val[topicname]}>"><{$val[topicname]}></a>
            </li>
        <php>}</php>
        </ul>
    </div>
    <div class="clearline"></div>
</div>
</div>
<php>}</php>
<include file="Common:foot" />